package com.shareach.domain;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * 
 * @author zuoshuaiok@gmail.com
 * 
 */

@Document(collection = "flowisDetail")
public class FlowisStatDetailDTO   {

	private static final long serialVersionUID = -7851464899920005963L;

	/**
	 * 用户�?��访问的标�?
	 */
	@Id
	private ObjectId id;

	/**
	 * 客户ip
	 */
	private String ip;

	/**
	 * 访问时间 毫秒�?
	 */
	private String access_date;

	/**
	 * 访问国家
	 */
	private String access_country;

	/**
	 * 访问省市
	 */
	private String access_province;

	/**
	 * 访问市县
	 */
	private String access_city;

	/**
	 * . 直接 输入 网址 外面链接，搜索引�?
	 */
	private Integer req_source;

	/**
	 * 受访页面
	 */
	private String access_url;

	/**
	 * 语言
	 */
	private String language;

	/**
	 * 用户操作系统
	 */
	private String os;

	/**
	 * 电脑分辨�?
	 */
	private String screen_resolution;

	/**
	 * 浏览�?
	 */
	private String browser;

	/**
	 * 网络接入�?
	 */
	private String internet_provider;

	/**
	 * 关键�?
	 */
	private String keyword;

	/**
	 * 来路
	 */
	private String referer;

	/**
	 * 来路域名
	 */
	private String domain;

	/**
	 * 是否装了 alexbar 插件
	 */
	private boolean iaAlexaBar;

	/**
	 * CookieId
	 */
	private String cookieId;

	/**
	 * 是否第一次访�?
	 */
	private Integer visitCount = 1;

	/**
	 * 搜索引擎
	 */
	private String engineName;

	/**
	 * 如是专页则获取专页ID
	 */
	private String web_Id;

	/**
	 * 页面名称
	 */
	// private String pageName;

	private Integer stoptime = 0; // 浏览时间

	private Integer returnNumber = 1;// 回访次数

	private String domainId;

	private Integer close = 0;

	private String platform;

	// 用于当前情况的封�?
	private Integer pv;

	private Integer ipCount;

	private Integer webModule;

	public String getEngineName() {
		return engineName;
	}

	public void setEngineName(String engineName) {
		this.engineName = engineName;
	}

	public String getReferer() {
		return referer;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public ObjectId getId() {
		return id;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAccess_date() {
		return access_date;
	}

	public void setAccess_date(String access_date) {
		this.access_date = access_date;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Integer getReq_source() {
		return req_source;
	}

	public void setReq_source(Integer req_source) {
		this.req_source = req_source;
	}

	public String getAccess_url() {
		return access_url;
	}

	public void setAccess_url(String access_url) {
		this.access_url = access_url;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getScreen_resolution() {
		return screen_resolution;
	}

	public void setScreen_resolution(String screen_resolution) {
		this.screen_resolution = screen_resolution;
	}

	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getInternet_provider() {
		return internet_provider;
	}

	public void setInternet_provider(String internet_provider) {
		this.internet_provider = internet_provider;
	}

	public boolean isIaAlexaBar() {
		return iaAlexaBar;
	}

	public void setIaAlexaBar(boolean iaAlexaBar) {
		this.iaAlexaBar = iaAlexaBar;
	}

	public String getAccess_country() {
		return access_country;
	}

	public void setAccess_country(String access_country) {
		this.access_country = access_country;
	}

	public String getAccess_province() {
		return access_province;
	}

	public void setAccess_province(String access_province) {
		this.access_province = access_province;
	}

	public String getAccess_city() {
		return access_city;
	}

	public void setAccess_city(String access_city) {
		this.access_city = access_city;
	}

	public String getCookieId() {
		return cookieId;
	}

	public void setCookieId(String cookieId) {
		this.cookieId = cookieId;
	}

	public Integer getVisitCount() {
		return visitCount;
	}

	public void setVisitCount(Integer visitCount) {
		this.visitCount = visitCount;
	}

	/*
	 * public String getPageName() { return pageName; }
	 * 
	 * public void setPageName(String pageName) { this.pageName = pageName; }
	 */

	public Integer getPv() {
		return pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getIpCount() {
		return ipCount;
	}

	public void setIpCount(Integer ipCount) {
		this.ipCount = ipCount;
	}

	public Integer getStoptime() {
		return stoptime;
	}

	public void setStoptime(Integer stoptime) {
		this.stoptime = stoptime;
	}

	public Integer getReturnNumber() {
		return returnNumber;
	}

	public void setReturnNumber(Integer returnNumber) {
		this.returnNumber = returnNumber;
	}

	public String getDomainId() {
		return domainId;
	}

	public void setDomainId(String domainId) {
		this.domainId = domainId;
	}

	public Integer getClose() {
		return close;
	}

	public void setClose(Integer close) {
		this.close = close;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getFromatDate() {
		return access_date.substring(0, access_date.lastIndexOf(":"));
	}

	public Integer getWebModule() {
		return webModule;
	}

	public void setWebModule(Integer webModule) {
		this.webModule = webModule;
	}

	public String getWeb_Id() {
		return web_Id;
	}

	public void setWeb_Id(String web_Id) {
		this.web_Id = web_Id;
	}

}